﻿<Window x:Class="TestCase.ICollectionViewFiltering.WPF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:TestCase.ICollectionViewFiltering.WPF"
        Title="MainWindow" Height="350" Width="525" xmlns:my="clr-namespace:SStuff.FlowControls;assembly=SStuff.FlowControls">
    <Window.Resources>
        <DataTemplate DataType="{x:Type local:Model}">
            <StackPanel>
                <TextBlock Text="{Binding Data}" />
                <CheckBox Content="Visible" IsChecked="{Binding IsVisible}" />
            </StackPanel>
        </DataTemplate>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions >
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <my:FlowItemsControl2D x:Name="itemsControl2D" />
        <my:FlowItemsControl3D x:Name="itemsControl3D" Grid.Row="1" />
        <ListBox x:Name="lstBox" Grid.Row="2" />
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"
                    VerticalAlignment="Center" Grid.Row="3">
            <Button Margin="3" Content="Apply filter" Click="OnApplyFilter" />
            <Button Margin="3" Content="Remove filter" Click="OnRemoveFilter" />
        </StackPanel>
        
    </Grid>
</Window>
